import request from '@/utils/request'

export function initData(url, data, method = 'post') {
  return request({
    url: url,
    method: method,
    data
  })
}